import request from '@/utils/request'
export function listAllInvoiceHeader(query) {
  return request({
    url: '/biz/bizInvoiceHeader/listAll',
    method: 'get',
    params: query
  })
}
// 查询发票抬头列表
export function listBizInvoiceHeader(query) {
  return request({
    url: '/biz/bizInvoiceHeader/list',
    method: 'get',
    params: query
  })
}

// 查询发票抬头详细
export function getBizInvoiceHeader(id) {
  return request({
    url: '/biz/bizInvoiceHeader/' + id,
    method: 'get'
  })
}

// 新增发票抬头
export function addBizInvoiceHeader(data) {
  return request({
    url: '/biz/bizInvoiceHeader',
    method: 'post',
    data: data
  })
}

// 修改发票抬头
export function updateBizInvoiceHeader(data) {
  return request({
    url: '/biz/bizInvoiceHeader',
    method: 'put',
    data: data
  })
}

// 删除发票抬头
export function delBizInvoiceHeader(id) {
  return request({
    url: '/biz/bizInvoiceHeader/' + id,
    method: 'delete'
  })
}
